import torch
import torch.nn as nn

class Model(nn.Module):
    def __init__(self, input_size, output_size, hidden_size=128):
        super(Model, self).__init__()
        self.dense1 = nn.Linear(input_size, hidden_size)
        self.dense2 = nn.Linear(hidden_size, hidden_size)
        self.dense3 = nn.Linear(hidden_size, output_size)
        self.relu = nn.ReLU()

    def value(self, obs):
        output = self.relu(self.dense1(obs))
        output = self.relu(self.dense2(output))
        Q = self.dense3(output)
        return Q
